define(["jquery","layuiall","zTree","jqform","jq_request","helper"],function ($,layui,zTree,jqform,jq_request,helper) {
    var form = layui.form;
    controller = {
        index:function () {
            jqform.delete()
            $(".testtemplate").click(function(){
                var _this = $(this);
                layer.open({
                    title:'群发助手',
                    type:2,
                    area:['780px','80%'],
                    content:_this.data("href")
                })
            })
        },
        addtemplate:function () {
            jqform.init()
        },
        edittemplate:function () {
            jqform.init()
        },
        test:function () {
            jqform.init()
        },
    }
    return controller;
})